package com.gopay.scheduler.job;

import com.gopay.cps.service.FundcGopayOpenAccService;
import com.gopay.scheduler.GopayBaseJob;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author xinj.xue
 * @description：扫描商财通开户状态为“A”的定时任务
 * @date 2017-05-11 13:32
 **/
public class FundcGopayOpenAccJob extends GopayBaseJob {
    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @Autowired
    private FundcGopayOpenAccService fundcGopayOpenAccService;

    @Override
    protected void doJobInternal() {
        logger.info("扫描商财通开户状态为“A”的定时任务start");
        try{
            fundcGopayOpenAccService.executeCronJob();
        }catch (Exception e){
            logger.error("扫描商财通开户状态为“A”的定时任务异常："+e.getMessage(),e);
        }
        logger.info("扫描商财通开户状态为“A”的定时任务end");
    }
}
